#ifndef ALGO_H
#define ALGO_H

#include <QWidget>
#include <QGroupBox>
#include <QLabel>
#include <QPushButton>
#include <QHBoxLayout>
#include <QSettings>

#include "omron_float.h"
#include "omron_int.h"
#include "omron_text.h"
#include "fins.h"

namespace Ui {
    class Algorithm;
}

class Algorithm : public QWidget
{
    Q_OBJECT

public:
    explicit Algorithm(QString Who, QWidget *parent = 0);
    ~Algorithm();

    void SetWhereFins(Fins *addr);

public slots:
    void nextField(const QString &);
    void prevField(const QString &);



private:
    Ui::Algorithm *ui;

    QLabel *labelTemp;
    QLabel *labelPower;
    QPushButton *buttonSelectF;
    OmronFloat *CycleOnOff;
    OmronFloat *AllCicle;
    OmronFloat *PullUp;
    OmronFloat *BaseLevel;
    OmronFloat *FeedMode;
    OmronFloat *FeedPeriod;
    OmronInt  *FeedTune;

    QVBoxLayout *VBox;

    Fins *WhereFins;

    QSettings *InitSettings;

    QString WhoAmI;

};

#endif // ALGO_H
